package com.kw.common.security.message;


import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.support.ReloadableResourceBundleMessageSource;

/**
 * Created by Medivh on 2020/8/3.
 * 愿我出走半生,归来仍是少年
 */
@Configuration
public class MessageConfig {
	@Bean
	public ReloadableResourceBundleMessageSource messageSource(){
		ReloadableResourceBundleMessageSource reloadableResourceBundleMessageSource = new ReloadableResourceBundleMessageSource();
		reloadableResourceBundleMessageSource.setBasename("classpath:org/springframework/security/messages_zh_CN");
		return reloadableResourceBundleMessageSource;
	}
}
